package _8_inherit;

public class Test {

	public static void main(String[] args) 
	{
		Cat cat = new Cat();
		cat.setName("Tom");
		cat.setAge(1);
		cat.show();
		
		Dog dog = new Dog();
		dog.setName("Lucky");
		dog.setAge(2);
		dog.setHair("金毛卷发");
		System.out.println("姓名是：" + dog.getName() + "，年龄是：" + dog.getAge() + "岁" + 
		"，毛发：" + dog.getHair());
		
		cat.shower();
		dog.shower();
	}

}
